package com.czh.subject.domain.convert;

import com.czh.subject.domain.entity.SubjectInfoBO;
import com.czh.subject.infra.basic.entity.SubjectInfoES;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @author caozaihui
 * @version 1.0
 * @since 2024/9/11 16:08
 */
@Mapper
public interface SubjectESConverter {
    SubjectESConverter INSTANCE = Mappers.getMapper(SubjectESConverter.class);


    @Mapping(source = "id", target = "subjectId")
    SubjectInfoES convert(SubjectInfoBO subjectInfoBO);
}
